<%@ page language="java" contentType="text/html; charset=utf8"
    pageEncoding="utf8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>Insert title here</title>
</head>
<link rel="stylesheet" href="/hospital-system/bootstrap-5.3.0/css/bootstrap.css">
<body style="background: url('../images/paback.jpg'); 
		background-attachment: fixed; background-size: 100%">
<form action="/hospital-system/checkReport" method="post" class="mt-3" onsubmit="return checkForm()">
			<div class="mb-3 row">
			    <label class="col-sm-2 col-form-label">预约号:</label>
			    <div class="col-sm-10">
			      <input type="text"  class="form-control" id="userName" name="Bid">
			    </div>
			  </div>
			  <div class="mb-3 row">
			  <label class="col-sm-2 form-label"></label>		  
			    <div class="col-sm-3">
			      <input type="submit" class="form-control btn btn-primary" value="查询就诊信息" >
			    </div>	
			    
			    
			   <!--  <div class="mb-3 row">
			  <label  class="col-sm-2 form-label"></label>		  
			    <div class="col-sm-3">
			      <input type="button" onclick="window.location.href='jsp/index.jsp';" 
		class="form-control btn btn-primary" value="返回">
			    </div> -->
			</div>	  
		</form>
		<div class="mb-3 row">
			  <label  class="col-sm-2 form-label"></label>		  
			    <div class="col-sm-3">
			      <input type="button" onclick="window.location.href='../jsp/index.jsp';" 
		class="form-control btn btn-primary" value="返回">
			    </div>
			</div>
</body>
<script src="/hospital-system/js/jquery-3.6.1.min.js"></script>
<script>
	/**
	 * 校验预约单号表单
	 * @returns {boolean}
	 */
	function checkForm() {
		var userName=$("#userName").val();
		if(userName==null||userName==''){
			alert("预约单号不能为空");
			return false;
		}
		return true;
	}

</script>
</html>